/**
 * 功能描述 联盟团信息导航条
 */

define(function (require, exports, module) {
	var Form = require("form");
	var enmu = require("enums");
	var Dialog = require("dialog");
	
	var store =require("store");
	var activeUser = store.get("user");	
	
    var instance = {
        initComponent: function (params, widget) {
            var form = new Form({
            	parentNode : ".J-form",
            	model : {
                    id: "form",
                    defaultButton : false,
                    layout: "3_1",
                    items: [{
                    	name : "",
                    	type : "hidden"
                    },{
                    	name : "version",
                    	type : "hidden",
                		defaultValue : "0"
                    },/*{
                    	name : "servicePoint",
                    	label : "目的地",
                    	type : "select",
                    	keyField : "pkServicePoint",
                    	valueField : "name",
                    	validate:["required"],
                    },*/{
                    	name : "dname",
                    	label : "目的地",
                    	readonly:true
                    },{
                    	name : "startDate",
                    	label : "开始日期",
                    	type : "date",
                    	readonly:true
                    },{
                    	name : "endDate",
                    	label : "结束日期",
                    	type : "date",
                    	readonly:true
                    },{
                    	name : "groupUnit",
                    	label :"组团单位",
                    	readonly:true
                    },{
                    	name : "applyNum",
                    	label : "已经报名人数",
                    	readonly:true
                    },{
                    	name : "groupType",
                    	label :"组团单位",
                    	type : "hidden"
                    },{
                    	name : "pkCIImplement",
                    	label :"pk",
                    	type : "hidden"
                    },{
                    	name : "editStatus",
                    	label :"换房或查看",
                    	type : "hidden"
                    }]
                }
            })
        	widget.set("form", form);
        }
    };
    module.exports = instance;
});
